package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 轮播图表
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SlideshowPageDTO", description = "轮播图表")
public class SlideshowPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @NotEmpty(message = "标题不能为空")
    @Length(max = 500, message = "标题长度不能超过500")
    private String title;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer serialNum;
    /**
     * 广告链接
     */
    @ApiModelProperty(value = "广告链接")
    @Length(max = 500, message = "广告链接长度不能超过500")
    private String link;
    /**
     * 状态：0-生效 1-失效 2-删除
     */
    @ApiModelProperty(value = "状态：0-生效 1-失效 2-删除")
    @Length(max = 1, message = "状态：0-生效 1-失效 2-删除长度不能超过1")
    private String status;
    /**
     * 0首页1首页banner2商城banner
     */
    @ApiModelProperty(value = "0首页1首页banner2商城banner")
    @NotNull(message = "0首页1首页banner2商城banner不能为空")
    private Integer type;
    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    @NotEmpty(message = "图片地址不能为空")
    @Length(max = 2000, message = "图片地址长度不能超过2000")
    private String url;

}
